package com.cdream.basic.spring.factorybean.circle;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author cdream
 * @date 2021/10/29
 */
@Component
public class TestA {
    @Autowired
    private TestB testB;

    public void sayB(){
        testB.say();
    }
    public void say() {
        System.out.println("B说了一句话");
    }
}
